package com.hyb.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hyb.Vo.CustomerDictionaryVo;
import com.hyb.Vo.CustomerVo;
import com.hyb.entity.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyb.page.VoQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  客户Mapper 接口
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
@Mapper
public interface CustomerMapper extends BaseMapper<Customer> {
    IPage<CustomerDictionaryVo> selectCustomerInfo(Page page);

    CustomerDictionaryVo selectCUstomerById(Integer customerId);

    IPage<CustomerVo> selectDrainCustomers(Page<CustomerVo> page,@Param("voQuery") VoQuery voQuery);

    Integer selectToBeConfirmedCustomerNu(@Param("staffId") Integer staffId);

    Integer selectToBeConfirmedCustomerNum(Integer staffId);
}
